package com.it.zhangjun.spring.aop;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @className: SpringAopAnnotationApp
 * @description: TODO 类描述
 * @author: z00018123
 * @date: 2021/4/28
 **/
public class SpringAopAnnotationApp {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:spring-aop-annotation.xml");
        BankService bankService = ctx.getBean(BankService.class);
        bankService.transfer("jordan", "kobe", 2000);
        System.out.println("*********************");
        bankService.transfer("jordan", "kobe", 0);
        System.out.println("第一次提交");
        ctx.close();
    }
}
